﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Diagnostics;

namespace Viet_Calculator
{
	/// <summary>
	/// Summary description for Dxdiag.
	/// </summary>
	public class Dxdiag : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Button btnMo;
		private System.Windows.Forms.TextBox txtDxdiag;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public Dxdiag()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Dxdiag));
			this.btnMo = new System.Windows.Forms.Button();
			this.txtDxdiag = new System.Windows.Forms.TextBox();
			this.SuspendLayout();
			// 
			// btnMo
			// 
			this.btnMo.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.btnMo.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.btnMo.Location = new System.Drawing.Point(176, 16);
			this.btnMo.Name = "btnMo";
			this.btnMo.Size = new System.Drawing.Size(96, 24);
			this.btnMo.TabIndex = 0;
			this.btnMo.Text = "Mở";
			this.btnMo.Click += new System.EventHandler(this.btnMo_Click);
			// 
			// txtDxdiag
			// 
			this.txtDxdiag.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.txtDxdiag.Location = new System.Drawing.Point(16, 16);
			this.txtDxdiag.Name = "txtDxdiag";
			this.txtDxdiag.Size = new System.Drawing.Size(144, 22);
			this.txtDxdiag.TabIndex = 1;
			this.txtDxdiag.Text = "";
			// 
			// Dxdiag
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(280, 53);
			this.Controls.Add(this.txtDxdiag);
			this.Controls.Add(this.btnMo);
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.MaximizeBox = false;
			this.Name = "Dxdiag";
			this.Text = "Mo DirectX Diagnostic Tool ";
			this.Load += new System.EventHandler(this.Dxdiag_Load);
			this.ResumeLayout(false);

		}
		#endregion


		private void Dxdiag_Load(object sender, System.EventArgs e)
		{
			txtDxdiag.Text = "dxdiag";
		}

		private void btnMo_Click(object sender, System.EventArgs e)
		{
			Process.Start(txtDxdiag.Text);
		}
	}
}
